package cn.javass.dp.visitor.example1;

public class Client {
    public static void main(String[] args) {
        ObjectStructure os = new ObjectStructure();

        Element eleA = new ConcreateElementA();
        Element eleB = new ConcreateElementB();

        os.addElement(eleA);
        os.addElement(eleB);

        Visitor visitor = new ConcreateVisitor1();
        os.handleRequest(visitor);
    }
}
